<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: 麦当苗儿 <zuojiazi@vip.qq.com> <http://www.zjzit.cn>
// +----------------------------------------------------------------------

namespace Home\Controller;
use OT\DataDictionary;

/**
* 前台首页控制器
* 主要获取首页聚合数据
*/
class MarketController extends HomeController {

//系统首页
public function index(){
   $this->logo(); 
   $list = D('Document')->page(43); 
   $this->assign('page',$list['data1']);
   $this->assign('data',$list['data2']);
   $this->display("Market/market");
}

public function detail(){
     $this->logo(); 
    $id = $_GET['id'];
    if(isset($id))
    {
        $list = D('Document')->detail($id);
        $this->assign('data',$list);
          $this->display("Market/new"); 
        
    }
}
public function logo(){
       $list2 = D('Document')->detail(35);
       $this->assign('logo',$list2);
}
}